package com.yunhe.assist.repository;

import com.yunhe.assist.domain.ParkIntroduce;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @description park_introduce
 * @author dlz
 * @date 2021-11-09
 */
@Repository
public interface ParkIntroduceRepository {

    /**
     * 新增
     * @author dlz
     * @date 2021/11/09
     **/
    int createParkIntroduce(ParkIntroduce parkIntroduce);

    /**
     * 新增
     * @author dlz
     * @date 2021/11/09
     **/
    int createParkIntroduceSelective(ParkIntroduce parkIntroduce);

    /**
     * 刪除
     * @author dlz
     * @date 2021/11/09
     **/
    int deleteParkIntroduceByPrimaryKey(@Param("id") int id);

    /**
     * 更新
     * @author dlz
     * @date 2021/11/09
     **/
    int updateParkIntroduceByPrimaryKey(ParkIntroduce parkIntroduce);

    /**
     * 更新
     * @author dlz
     * @date 2021/11/09
     **/
    int updateParkIntroduceByPrimaryKeySelective(ParkIntroduce parkIntroduce);

    /**
     * 根据主键查询
     * @author dlz
     * @date 2021/11/09
     **/
    ParkIntroduce searchParkIntroduceByPrimaryKey(@Param("id") int id);


    /**
     * 根据园区id查询
     * @author dlz
     * @date 2021/11/09
     **/
    ParkIntroduce findParkIntroduceByParkId(@Param("parkId") long parkId);

    /**
     * 根据园区id判断园区介绍是否已存在
     * @param parkId
     * @return
     */
    int existByParkId(@Param("parkId") long parkId);
}
